projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f595c0d
)
csswidgetnode: Avoid some unnecessary work
author
Timm Bäder
<mail@baedert.org>
Fri, 19 Jan 2018 08:57:49 +0000
(09:57 +0100)
committer
Timm Bäder
<mail@baedert.org>
Fri, 19 Jan 2018 08:57:49 +0000
(09:57 +0100)
The later code would just ref both styles and not do anything else.
gtk/gtkcsswidgetnode.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcsswidgetnode.c
b/gtk/gtkcsswidgetnode.c
index 050c391a990a2ef9179cffa1dd99091d6854003f..3b1440d169c953ca2b91c0bd73a1d49c473d3217 100644
(file)
--- a/
gtk/gtkcsswidgetnode.c
+++ b/
gtk/gtkcsswidgetnode.c
@@
-99,6
+99,9
@@
gtk_css_widget_node_validate (GtkCssNode *node)
if (widget_node->widget == NULL)
return;
+ if (node->style == widget_node->last_updated_style)
+ return;
+
style = gtk_css_node_get_style (node);
gtk_css_style_change_init (&change, widget_node->last_updated_style, style);